/*
 * stream.c
 *
 *  Created on: 18/09/2011
 *      Author: utn_so
 */

#include "stream.h"
#include <stdlib.h>
#include <stdint.h>

void STREAM_Free(STREAM * aStream)
{
	aStream->length = 0;
	if (aStream != NULL)
		free(aStream->data);
}

void STREAM_Alloc(STREAM * aStream, int32_t size)
{
	aStream->data = calloc(size, sizeof(unsigned char));
}

void STREAM_Init(STREAM * aStream)
{
	aStream->length = 0;
	aStream->data = NULL;
}
